<?php$connect = mysql_connect('localhost','root','');mysql_select_db("ajax_form");?><?php$id = $_GET['id'];$select = "SELECT * from user where userid='$id'";$sq = mysql_query($select);$row = mysql_fetch_array($sq);echo json_encode($row);?>